<?php
/**
 * Author: Administrator
 * Date: 2022/7/15 1:23
 */

namespace DesignPatterns\Creation\AbstractFactory\Json;


use DesignPatterns\Creation\AbstractFactory\MediaInterface;

class Text implements MediaInterface
{
    protected $content;

    public function __construct($content)
    {
        $this->content = $content;
    }

    public function render()
    {
        return '{"content": "'.$this->content.'"}';
    }
}